import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import category from './modules/category'
import real from './modules/real'
import accountApply from './modules/accountApply'
import comment from './modules/comment'
import ordercomment from './modules/ordercomment,'
import classify from './modules/classify'
import userRoles from './modules/userRoles'
import staff from './modules/staff'
import client from './modules/client'
import article from './modules/article'
import product from './modules/product'
import customer from './modules/customer'
import employee from './modules/employee'
import system from './modules/system'


Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        app,
        settings,
        user,
        category,
        real,
        accountApply,
        comment,
        ordercomment,
        classify,
        userRoles,
        staff,
        client,
        article,
        product,
        customer,
        employee,
        system
    },
    getters
})

export default store